home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / PTD_TREE.ZIP / SAMPLE-2.POV < prev    next >
Encoding:
Text File  |  1996-09-19  |  2.8 KB  |  90 lines

  1.  
  2. //------------------------------------------------------------------->
  3. //------------------------------------------------------------------->
  4. //
  5. // "sample-2.pov" - Sample tree for the "ptd_tree" include file.
  6. //
  7. // This is something like sample-1, but with simple leaves (spheres).
  8. //
  9. //------------------------------------------------------------------->
  10. //------------------------------------------------------------------->
  11. //
  12. // Set up a simple scene.
  13.  
  14.         #include "colors.inc"
  15.         #include "textures.inc"
  16.         #include "skies.inc"
  17.         #include "golds.inc"
  18.         #include "stones.inc"
  19.         #include "glass.inc"
  20.  
  21.         #default { finish { Shiny } }
  22.  
  23.         camera { location < 0, 6, -22> 
  24.         look_at < 0, 9, 0> }
  25.  
  26.         light_source { < -100, 100,    0 > color White}
  27.         light_source { <    0, 100, -100 > color White}
  28.         light_source { <  100, 100,    0 > color White}
  29.  
  30.         background { White }
  31.         sky_sphere { S_Cloud2 }
  32.  
  33.         plane { y, 0  pigment { Coral } normal { crackle 1 scale 4 } }
  34.  
  35. //------------------------------------------------------------------->
  36. //------------------------------------------------------------------->
  37. //
  38. // Now set all of the variables for the tree. read "ptd_tree.txt" to
  39. // find out what all these things do!
  40.  
  41.         #declare TREE_RAND = seed(0)
  42.         #declare Wiggle_Flag = on
  43.         #declare Branches_On_End_Flag = on
  44.  
  45.         #declare Number_Of_Large_Branches = 5
  46.         #declare Number_Of_Medium_Branches = 5
  47.         #declare Number_Of_Small_Branches = 7
  48.  
  49.         #declare Large_Branch_Minimum_Angle = 20
  50.         #declare Large_Branch_Maximum_Angle = 80
  51.  
  52.         #declare Medium_Branch_Minimum_Angle = 20
  53.         #declare Medium_Branch_Maximum_Angle = 80
  54.         
  55.         #declare Small_Branch_Minimum_Angle = 20
  56.         #declare Small_Branch_Maximum_Angle = 80
  57.  
  58.         #declare Tree_Trunk_Size = 8
  59.  
  60.         #declare Large_Branch_Size_Min = 3
  61.         #declare Large_Branch_Size_Max = 5
  62.  
  63.         #declare Medium_Branch_Size_Min = 2
  64.         #declare Medium_Branch_Size_Max = 4
  65.  
  66.         #declare Small_Branch_Size_Min = 2
  67.         #declare Small_Branch_Size_Max = 4
  68.  
  69.         #declare Leaf_Type = 1
  70.  
  71.         #declare TREE_MESH_SIZE = 200
  72.  
  73.         #declare Leaf_Texture = texture { pigment { Red } }
  74.         #declare Bark_Texture = texture { pigment { Yellow } }
  75.  
  76. //------------------------------------------------------------------->
  77. //------------------------------------------------------------------->
  78. //
  79. // Now go and build the tree, then show it.
  80.  
  81.         #include "ptd_tree.inc"
  82.  
  83.         object { Complete_Tree }
  84.  
  85. //------------------------------------------------------------------->
  86. //------------------------------------------------------------------->
  87. //
  88. // End of this file.
  89.  
  90.